﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace Comisiones.Models
{
    public class RangoTipoTransDAO:DbContext
    {
        public RangoTipoTransDAO() : base("ConexionPrincipalDAO") { }
        public DbSet<TipoTransaccion> tiposTrans { get; set; }
        public DbSet<Tarifario> tarifarios { get; set; }
        public DbSet<RangoTipoTrans> rangoTiposTrans { get; set; }
        
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<TipoTransaccion>().ToTable("Tipo_Transaccion");
            modelBuilder.Entity<Tarifario>().ToTable("Tarifario");
            modelBuilder.Entity<RangoTipoTrans>().ToTable("Rango_Tipo_Transaccion");
            
        }
    }
}